package net.esj.basic.core.engine.tools.test.inst;

import net.esj.basic.core.engine.tools.test.ClassTest;

public class ClassIsAssignableFrom implements ClassTest {

	private Class parent;
	
	
	public ClassIsAssignableFrom(Class parent) {
		super();
		this.parent = parent;
	}


	@Override
	public boolean test(Class o) {
		return o != null && parent.isAssignableFrom(o);
	}

}
